<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>

    var count = 0
    while (count < 10) {
      console.log("Hello World:", count)
      count++
    }

    var totalCount = 0
    var count = 0
    while (count < 100) {
      console.log(count)
      totalCount += count++
    }
    console.log("totalCount:", totalCount)

    var count = 0
    var totalCount1 = 0
    var totalCount2 = 0
    while (count < 100) {
      if (count % 2 !== 0) {
        totalCount1 += count
      } else {
        totalCount2 += count
      }
      count++
    }
    console.log("所有的奇数和:", totalCount1)
    console.log("所有的偶数和:", totalCount2)


  </script>
</body>

</html>